import { network } from '@/utils';
import { TableListParams } from './data';

import { basic } from '../../../../../config/Apis';

export async function querySmallWhiteList(params: TableListParams) {
  return network.get(basic.xiaobai_account_list, {
    params,
  });
}

export async function operChangeStatus(params: { id: number, status: number}) {
  return network.put(basic.xiaobai_account_status, { data: params });
}

export async function operDelete(params: { id: number }) {
  return network.deleter(basic.xiaobai_account, { params });
}
